package com.bsoft.gol.hcs.enumcase;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * 用药信息记录enum
 * @author lanyu
 * @date 2021年11月01日 15:31
 */
@NoArgsConstructor
@AllArgsConstructor
public enum PrescriptionRecordEnum {

    QueryPrescriptionRecord("ODS_getUseDrugInfo","ODS_02090005");

    private String code;
    private String value;

    public static final String getValue(String code){
        for (PrescriptionRecordEnum type : PrescriptionRecordEnum.values()){
            if (type.getCode().equalsIgnoreCase(code.trim())){
                return type.value;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
